<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>科室床日信息导入</title>
<style type="text/css">
	.bg-blue{
		background-color: #71d2d9;
	}
	.center-block{
		overflow:hidden;
		max-width: 600px;
		margin-top:50px;
		margin-bottom:50px;
		text-align:center;
		padding:50px;
		border-radius: 10px;
	    border: 1px solid #ddd;
	    box-shadow: 0 15px 80px rgba(0,0,0,.2);
	    background-color: white;
	}
	.center-block input,.center-block button{
		width:150px;
		float:left;
		display: inline-block;
		margin:0 0 20px 10px;
	}
	.center-block input.form-control{
		background-color: white;
		cursor: text;
	}
</style>
</head>
<body style="min-width:480px;">
	<div class="container-fluid">
		<div class="row">
			<div><h2 align="center">科室床日信息导入</h2></div>
		</div>
		
		<div class="row">
			<div class="col-md-12">
				<div class="center-block">
				  <input class="form-control" id="sdate1" readonly="readonly">
		          <span style="float: left;font-size: 20px;">--</span>
		          <input class="form-control" id="edate1" readonly="readonly">
			      <button type="button" class="btn btn-success btn-block" onclick="importOperInfo()" disabled="disabled" title="已废弃"><i class="fa fa-eyedropper fa-lg"></i>&nbsp;&nbsp;导入手术信息</button>
			      
			      <input class="form-control" id="sdate2" readonly="readonly">
		          <span style="float: left;font-size: 20px;">--</span>
		          <input class="form-control" id="edate2" readonly="readonly">
			      <button type="button" class="btn btn-success btn-block" onclick="importKPIInfo()"><i class="fa fa-stethoscope fa-lg"></i>&nbsp;&nbsp;导入床日信息</button>
			    </div>
			</div>
		</div>
	</div>
<script>
$(document).ready(function(){
	$("#"+tabId+" #sdate1").datetimepicker({
	    format: "yyyy-mm-dd",
	    autoclose: true,
	    todayBtn: true,
	    minView: 2,
	    language: 'zh-CN'
	});
	$("#"+tabId+" #edate1").datetimepicker({
	    format: "yyyy-mm-dd",
	    autoclose: true,
	    todayBtn: true,
	    minView: 2,
	    language: 'zh-CN',
	});
	$("#"+tabId+" #sdate2").datetimepicker({
	    format: "yyyy-mm-dd",
	    autoclose: true,
	    todayBtn: true,
	    minView: 2,
	    language: 'zh-CN'
	});
	$("#"+tabId+" #edate2").datetimepicker({
	    format: "yyyy-mm-dd",
	    autoclose: true,
	    todayBtn: true,
	    minView: 2,
	    language: 'zh-CN',
	});
});
function importOperInfo(){
	$.post(contextPath + "/OperInfo/importOperInfoByDate.dhc",
		{
		  'dateFrom':$('#sdate1').val(),
		  'dateTo':$('#edate1').val()
		}).done(function(data){
			drgUI.success('手术信息导出成功！');
	});
  }
  
  function importKPIInfo(){
	 $.post(contextPath + "/OperInfo/importKPIInfoByDate.dhc",
		{
		 'dateFrom':$('#sdate2').val(),
		  'dateTo':$('#edate2').val()
		}).done(function(data){
			drgUI.success('科室床日信息导出成功！');
	});
  }
</script>
</body>
</html>